package com.intellagric.agriecom.module.agriecom_produce;


import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.module.agriecom.agriecom_produce.ParamValueVo;
import com.intellagric.pojo.AgriecomProduce;

import java.util.LinkedHashMap;
import java.util.List;


public interface ProduceService {

    ResponseMessage selectProduceById(String id);


    AgriecomProduce queryProduceById(String id);

    ResponseMessage insertProduce(AgriecomProduce produce);

    ResponseMessage deleteProduce(String id);

    ResponseMessage editProduce(AgriecomProduce produce);

    LayuiDataGridResult getList(int page, int rows, String order);

//    List<AgriecomProduce> getAll(String order);

    LayuiDataGridResult getListByCategoryId(int page, int limit, String categoryId);

    LayuiDataGridResult getListByCategory(String categoryId);

    ResponseMessage batchDeleteProduce(String[] ids);

    LayuiDataGridResult getproduceByKeyword(int page,int limit,String keyword);

    List<AgriecomProduce> getHotList(int page, int limit);

    List<ParamValueVo> getParamByCategoryId(String categoryId);

    LinkedHashMap<String,String> getAncestorsByCategoryId(String categoryId);


}
